package com.blog.mapper;

import com.blog.entity.BlogTag;
import com.blog.entity.Tag;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 电脑小白
* @description 针对表【blog_tag】的数据库操作Mapper
* @createDate 2025-07-05 09:59:31
* @Entity com.blog.entity.BlogTag
*/
public interface BlogTagMapper {

    @Select("select * from tag where id in (select tag_id from blog_tag where blog_id=#{blogId})")
    List<Tag> get_tag(Integer blogId);

    void addBlogTagList(@Param("blogId") Integer blogId,@Param("tagIds") List<Integer> tagIds);
}




